package io.renren.common.enums;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 *
 * @author sean
 * @since 2020-03-18
 *
 * 通讯运营商
 */
public enum TelOperatorType implements IDictEnum<String> {

    /**
     * 中国电信
     */
    DX("DX", "电信"),

    /**
     * 中国联通
     */
    LT("LT", "联通"),

    /**
     * 中国移动
     */
    YD("YD", "移动");

    private String code;

    private String description;

    TelOperatorType(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getType() {
        return "TEL_OP_TYPE";
    }

    @Override
    public String getDescription() {
        return this.description;
    }

    @Override
    @JsonValue
    public String getValue() {
        return this.code;
    }
}
